# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
#             Mike Brown <mbrown@archlinuxarm.org>
# OMAP FrameBuffer driver for Xorg

buildarch=4

pkgname="xf86-video-omap"
pkgver=0.4.3
pkgrel=4
arch=('armv7h')
url="http://cgit.freedesktop.org/xorg/driver/xf86-video-omap/"
license=('GPL2')
makedepends=('pkgconfig' 'xorg-server-devel' 'resourceproto' 'scrnsaverproto')
options=('!libtool')
source=('http://cgit.freedesktop.org/xorg/driver/xf86-video-omap/snapshot/xf86-video-omap-0.4.3.tar.gz')
md5sums=('d53bfdc06199b522140c83701fd027b4')

build() {
  cd "${srcdir}/xf86-video-omap-${pkgver}"
  ./autogen.sh
  ./configure --prefix=/usr

  make
}

package() {
  pkgdesc="OMAP3+ framebuffer driver for X"

  cd "${srcdir}/xf86-video-omap-${pkgver}"

  make DESTDIR="${pkgdir}" install
}
